﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Parallel3M.parallel3m.framework;

namespace Parallel3M.parallel3m.handler
{
    public class JavaCodeCompileHandler:ParallelHandler
    {
        public JavaCodeCompileHandler()
        {
            handlerid = ParallelSystemHandlersConst.JAVA_COMPILER_HANDLER;
            handlername = "JAVA CODE HANDLER";
            handlerdefine = "<handler><code/></handler>";
        }



        public override string handle(ParallelPayload payload)
        {          

            //get the input parameters
            string code = payload.request;
         
            //compile using javac.exe


            //get the output
            string result = "java compiled successfully";

            return result;
        }

    }
}
